/**
 * Created by linyanbin on 2018/10/3.
 */
$(function(){
    var divEle = $('.ranking_list');
    var rankHtml = '<ul>{{#each this}}' +
        '<li><b><a href="composition_content.html?aid={{articleId}}" target="_blank">{{articleTitle}}</a></b>' +
        '<p><i><img src="/campus{{navgationImg}}"></i>{{articleSummary}}</p></li>{{/each}}</ul>';
    // 获取top6
    $.get(url.article.loadRankUrl, function(res){
        readTemplateAndAppend(rankHtml, res.data, divEle);
    }, "json");
});